﻿using LimaLims.Core.Enum;
using Microsoft.EntityFrameworkCore;

namespace LimaLims.Core.Entity.Basic
{
    /// <summary>
    /// 检验方案项目结果表
    /// </summary>
    [Comment("检验方案项目结果表")]
    public class InspectionDataResult : DEntityTenant
    {
        /// <summary>
        /// 试验任务Id
        /// </summary>
        [Comment("试验任务Id")]
        public long ExperimentTaskId { get; set; }

        /// <summary>
        /// 试验项目ID
        /// </summary>
        [Comment("试验项目ID")]
        public long InspectionDataId { get; set; }

        public InspectionData InspectionData { get; set; }

        /// <summary>
        /// 试验值
        /// </summary>
        [Comment("试验值")]
        public float ExperimentValue { get; set; }

        /// <summary>
        /// 试验描述
        /// </summary>
        [Comment("试验描述")]
        public string ExperimentRemark { get; set; }

        /// <summary>
        /// 试验波形图
        /// </summary>
        [Comment("试验波形图")]
        public string ImagePath { get; set; }

        /// <summary>
        /// 试验结果
        /// </summary>
        [Comment("试验结果")]
        public ExperimentResult? Result { get; set; }
    }
}
